package com.fy.restfulapi.annotation;
import com.fy.restfulapi.condition.MyConditionalOnEnableRESTfulAnnotation;
import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

/**
 * @author sunlei
 * @version 1.0
 * @date 2023/7/21 14:49:53
 * @description 当使用了EnableUnifiedRESTful注解，才开启RESTful统一处理结果功能
 */

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Conditional(MyConditionalOnEnableRESTfulAnnotation.class)  // 该自定义condition的实现类
public @interface ConditionalOnEnableRESTfulAnnotation {
}
